package com.qf.demo;

import com.qf.dao.PersonDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName PersonTest
 * @Description TODO
 * @Author 86181
 * @Date 2022/8/29 23:05
 * @Version 1.0
 **/
public class PersonTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");
        PersonDao personDao = (PersonDao) applicationContext.getBean("personDao");
        personDao.addPerson();
    }

}
